package com.shenmazong.serverwebpoem.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.shenmazong.serverwebpoem.pojo.TbCollection;

import java.util.List;
import java.util.Map;

/**
 * @author 田不平
 * @project server-web-poem
 * @date 2020/3/24 8:29 AM
 * http://www.shenmazong.com
 */
public interface TbCollectionService {
    void add(TbCollection collection);
    void del(Integer id);
    void set(TbCollection collection);
    TbCollection getById(Integer id);

    TbCollection getByAuthorAndPoetry(Integer userId, Integer poetryId);
    IPage<TbCollection> getMapCollectionByPage(Integer userId, Integer pageCurrent, Integer pageSize);
}
